﻿@model BugTracker.Models.Project

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_LayoutDeveloper.cshtml";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    
<fieldset>

<br />
           @Html.HiddenFor(model => model.project_idPK)

       <div class="editor-label">
            @Html.Label("Project Name:")
        </div>
        
        <div class= "editor-field">
            @Html.TextBoxFor(model => model.project_name, new { @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.project_name)
        </div>

<br />
        <div class="editor-label">
            @Html.Label("Task Assign:")
        </div>
        <div class= "editor-field">
            @Html.TextBoxFor(model => model.task_assign, new { @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.task_assign)
        </div>

<br />
          <div class="editor-label">
            @Html.Label("Assigned to: (Developer)")
        </div>
        <div class= "editor-field">
            @Html.TextBoxFor(model => model.developer_assignID, new { @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.developer_assignID)
        </div>

<br />
          <div class="editor-label">
            @Html.Label("Assigned to: (QA)")
        </div>
        <div class= "editor-field">
            @Html.TextBoxFor(model => model.qa_assignID, new { @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.qa_assignID )
        </div>

<br />
        <div class="editor-label">
            @Html.Label("Project Description:")
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.project_description, new { @readonly = "readonly", style = "resize: none;", @cols = 50, @rows = 10 })
            @Html.ValidationMessageFor(model => model.project_description)
        </div>

<br />
        <div class="editor-label">
            @Html.Label("Project Date Created:")
        </div>
        <div class="datefield">
            @Html.TextBoxFor(model => model.project_datecreated, new { @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.project_datecreated)
        </div>

<br />
        <div class="editor-label">
            @Html.Label("Project Deadline:")
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.project_deadline, new { @readonly = "readonly"})
            @Html.ValidationMessageFor(model => model.project_deadline)
        </div>

<br />
  
        <div class="editor-label">
            @Html.Label("Status:")
        </div> 
        <div class="editor-field">
            @Html.DropDownListFor(model => model.status_id,
            new SelectList(ViewData["Status"] as System.Collections.IEnumerable,
            "status_id", "status_name"))
         </div> 
<br />
<br />
       
<p>
       <input type = "submit" value = "Save" />
</p> 

<div>
    @Html.ActionLink("Back to List", "Project")
</div>



<br />
<br />
  </fieldset>
  
}

